{extend name="public:layout" /}

{block name="title"}首页{/block}

{block name="head"}
<link rel="stylesheet" href="/public/home/plugins/amazeui/css/index.css">

{/block}

{block name="body"}
<!--头部-->
<div class="am-g">
    <div class="am-u-sm-4" style="margin-top: 50px;padding-left: 50px;">
        <img src="../../image/spt.jpg" alt="" style="width:60px;height:60px;border-radius: 50%;">
    </div>
    <div class="am-u-sm-8" style="margin-top: 40px;">
        <p style="margin: 0px;font-weight: 600;padding-bottom: 5px;">用户名/设计师</p>
        <P style="margin: 0px;color: #D87D62;font-weight: 600;padding-bottom: 5px;">TEL:15013142345</P>
        <P style="margin: 0px;font-size: 14px;">太原居然之家春天店</p>
    </div>
</div>
<div class="am-g" style="text-align: center;margin-top: 15px;border-bottom: 10px solid #eee;">
    <a href="javascript:;" class="js_grid getmap">
    <!--<a href="{:url('home/centrality/xinjiankehu')}" class="">-->
        <div class="am-u-sm-4">
            <span class="icon iconfont icon-addpeople" style="font-size: 40px;"></span>
            <p style="margin: 0px;margin-top: -13px;margin-bottom:40px;font-size: 14px;">新增客户</p>
        </div>
    </a>
    <a href="../woderizhi/woderizi.html" style="padding: 0px;">
        <div class="am-u-sm-4">
            <span class="icon iconfont icon-activity" style="font-size: 40px;"></span>
            <p style="margin: 0px;margin-top: -13px;font-size: 14px;">待办事项</p>
        </div>
    </a>
    <a href="{:url('home/shuju/index')}" style="padding: 0px;">
        <div class="am-u-sm-4">
            <span class="icon iconfont icon-shijian" style="font-size: 40px;"></span>
            <p style="margin: 0px;margin-top: -13px;font-size: 14px;">报表数据</p>
        </div>
    </a>
</div>
<ul class="am-list" style="margin: 0px;border-bottom: 10px solid #eee;">
    <li>
        <a href="{:url('home/dingdan/index')}" style="padding: 0px;">
            <div class="am-g" style="padding: 15px 0px;">
                <div class="am-u-sm-10" style="padding-left: 13px;">
                    <span class="icon iconfont icon-bianjituijian" style="color: #9AE4E4;"></span>
                    潜在客户
                </div>
                <div class="am-u-sm-2" style="padding-left:30px; ">
                    <span class="icon iconfont icon-jiantouyou"></span>
                </div>
            </div>
        </a>
    </li>
    <li>
        <a href="{:url('home/dingdan/index')}" style="padding: 0px;">
            <div class="am-g" style="padding: 15px 0px;">
                <div class="am-u-sm-10" style="padding-left: 13px;">
                    <span class="icon iconfont icon-TXT" style="color: #9AB9E5;"></span>
                    正在跟踪的订单
                </div>
                <div class="am-u-sm-2" style="padding-left:30px; ">
                    <span class="icon iconfont icon-jiantouyou"></span>
                </div>
            </div>
        </a>
    </li>
    <li>
        <a href="{:url('home/centrality/phone')}" style="padding: 0px;">
            <div class="am-g" style="padding: 15px 0px;">
                <div class="am-u-sm-10" style="padding-left: 13px;">
                    <span class="icon iconfont icon-wendang" style="color: #D699E6;"></span>
                    通讯录
                </div>
                <div class="am-u-sm-2" style="padding-left:30px; ">
                    <span class="icon iconfont icon-jiantouyou"></span>
                </div>
            </div>
        </a>
    </li>
    <li>
        <a href="{:url('home/centrality/phone')}" style="padding: 0px;">
            <div class="am-g" style="padding: 15px 0px;">
                <div class="am-u-sm-10" style="padding-left: 13px;">
                    <span class="icon iconfont icon-wendang" style="color: #D699E6;"></span>
                    我的客户
                </div>
                <div class="am-u-sm-2" style="padding-left:30px; ">
                    <span class="icon iconfont icon-jiantouyou"></span>
                </div>
            </div>
        </a>
    </li>
    <li>
        <a href="#" style="padding: 0px;">
            <div class="am-g" style="padding: 15px 0px;">
                <div class="am-u-sm-10" style="padding-left: 13px;">
                    <span class="icon iconfont icon-picture__easy" style="color: #EAF9E1;"></span>
                    产品库
                </div>
                <div class="am-u-sm-2" style="padding-left:30px; ">
                    <span class="icon iconfont icon-jiantouyou"></span>
                </div>
            </div>
        </a>
    </li>
    <li>
        <a href="{:url('home/centrality/shezhi')}" style="padding: 0px;">
            <div class="am-g" style="padding: 15px 0px;">
                <div class="am-u-sm-10" style="padding-left: 13px;">
                    <span class="icon iconfont icon-shezhi" style="color: #BAD4FF;"></span>
                    设置
                </div>
                <div class="am-u-sm-2" style="padding-left:30px; ">
                    <span class="icon iconfont icon-jiantouyou"></span>
                </div>
            </div>
        </a>
    </li>
    <li>
        <a href="{:url('home/caiwu/hetonglist')}" style="padding: 0px;">
            <div class="am-g" style="padding: 15px 0px;">
                <div class="am-u-sm-10" style="padding-left: 13px;">
                    <span class="icon iconfont icon-shezhi" style="color: #BAD4FF;"></span>
                    合同
                </div>
                <div class="am-u-sm-2" style="padding-left:30px; ">
                    <span class="icon iconfont icon-jiantouyou"></span>
                </div>
            </div>
        </a>
    </li>
    <li>
        <a href="{:url('home/caiwu/huikauanlist')}" style="padding: 0px;">
            <div class="am-g" style="padding: 15px 0px;">
                <div class="am-u-sm-10" style="padding-left: 13px;">
                    <span class="icon iconfont icon-shezhi" style="color: #BAD4FF;"></span>
                    回款记录
                </div>
                <div class="am-u-sm-2" style="padding-left:30px; ">
                    <span class="icon iconfont icon-jiantouyou"></span>
                </div>
            </div>
        </a>
    </li>
    <li>
        <a href="javascript:;" class="weui-grid js_grid getmap">
            <div class="weui-grid__icon">
                <img src="/public/home/weui/demos/images/icon_nav_dialog.png" alt="">
            </div>
            <p class="weui-grid__label">
                地图定位
            </p>
        </a>
    </li>
</ul>
<!--底部-->
{include file="public/foot"/}
{/block}

{block name="script"}

<script>
    //地图定位
  dd.ready(function(){
    $('.getmap').click(function () {
        dd.device.geolocation.get({

            targetAccuracy : Number,

            coordinate : Number,

            withReGeocode : Boolean,

            useCache:true, //默认是true，如果需要频繁获取地理位置，请设置false

            onSuccess : function(lns) {

                dd.biz.map.locate({

                    latitude: lns.latitude, // 纬度

                    longitude: lns.longitude, // 经度

                    onSuccess: function (result) {

                        alert(JSON.stringify(result));

                    },

                    onFail: function (err) {

                        alert(JSON.stringify(err));

                    }

                });

            },

            onFail : function(err) {

                alert(JSON.stringify(err));

            }

        });

    });
  });

</script>

{/block}